#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/4/20 18:20
# @Author  : sunjing
# @Site    : 
# @File    : testdb.py
# @Software: PyCharm
# -*- coding: utf-8 -*-

from django.http import HttpResponse

from TestModel.models import Test


# 数据库操作
def testdb(request):

    test1 = Test(name='runoob')
    test1.save()
    return HttpResponse("<p>数据添加成功！</p>")
